<?php
//PingBuWang.Com
//Copyright (c) 2017~2099 http://www.pingbuwang.com All rights reserved.
namespace app\tag\tags;


use com\EncryptUtils;
use think\template\TagLib;
use mip\Paginationm;

class TagTags extends TagLib {

    protected $tags   =  [
        'get'      => ['attr' => 'value,id', 'close' => 0],
        'get_list'      => ['attr' => 'value,order,limit', 'close' => 0],
    ];

    public function tagGet_List($tag){

        $value = $tag['value'];
        $order = 'create_time  desc';
        $limit = !empty($tag['limit'])?$tag['limit']:'10';

        $order = convertTagParam($order);
        $limit = convertTagParam($limit);

        $html='<?php  $'.$value.' = db("tags")->page(1,"'.$limit.'")->order('.$order.')->select();?>';
        return $html;
    }

     
}
